@(pins: List[is.ru.honn.rupin.domain.Pin], boardname: String, user : is.ru.honn.rupin.domain.User, admin : Boolean)

@main(Html("RuPin"), nav="board") {
<h2>@boardname by <a href="@routes.UserController.profile(user.getUsername)">@user.getName</a></h2>
<ul class="BoardList">
@if(admin){
<a class="btn" href="@routes.PinController.pinForm(boardname)">add a pin to this board</a>
}
    <div class="span14">
        <div class="row">
            @for(pin <- pins){
            <div class="pin">
                <a href="@pin.getImage" rel="lightbox" title="@pin.getLink" descr="@pin.getDescription" username="@pin.getCreator.getUsername" creator="@pin.getCreator.getName" boardname="@pin.getBoard.getName">
                    <img src="@pin.getImage" alt="Pin Image" />
                </a>
                <p class="description"><a href="@pin.getLink">@pin.getDescription</a></p>
                <div class="convo attribution clearfix">
                    <p class="NoImage">
                        <a href="@routes.UserController.profile(pin.getCreator.getUsername)">
                            @pin.getCreator.getName
                        </a>
                        onto
                        <a href="@routes.BoardController.getBoard(pin.getCreator.getUsername, pin.getBoard.getName)">
                            @pin.getBoard.getName
                        </a>
                    </p>
                </div>
            </div>
            }
        </div>
    </div>
}